package com.blog.study.study6;

import java.util.function.Function;

/**
 * 测试函数.
 *
 * @author 张俊强~.
 * @date 2017/11/29-16:43.
 */
public class TestFunction {

    public static void main(String[] args) {

        Function<Integer,Integer> f1=(Integer d1)->d1*d1;
        Integer result=f1.apply(10);
        System.out.println(result);
    }
}
